package com.wxt.eventbusanalysis.annotationTest.annotations;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @author wuxiaotao on 2017/7/3.
 */
@Documented
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface ReqType {
    enum ReqTypeEnum {GET, POST, DELETE, PUT}

    ReqTypeEnum reqType() default ReqTypeEnum.POST; //采用自定义方法名  不是value
}
